import React from 'react'
import ReactDOM from 'react-dom/client'
import { RouterProvider } from 'react-router-dom'
import Router from './router'
import Store from './store'
import { Provider } from 'react-redux'



import zhCN from 'antd/locale/zh_CN';
import { ConfigProvider } from 'antd';

ReactDOM.createRoot(document.getElementById('root')!).render(
  <React.StrictMode>
    <Provider store={Store}>
      <ConfigProvider locale={zhCN} theme={
        {
          token: {
            // colorBgContainer: "#f0f0f0",
            // colorBgLayout: '#fff'
          },
          components: {
            Layout: {
              headerHeight: 48
            },
            Card: {
              paddingLG: 10
            }
          }
        }
      }>
        <RouterProvider router={Router} />
      </ConfigProvider>
    </Provider>
    
  </React.StrictMode>,
)
